/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.me.mahjongcalc.model;

import org.me.mahjongcalc.error.MTileValueOutOfBoundsException;

/**
 *
 * @author xelinis
 */
public class MSuitedTile implements MTile {

	public static enum MSuit {
		BAMBOO, CHARACTER, DOT;
	}
	
	private MSuit suit;
	private int value;

	private MSuitedTile() {}

	public MSuitedTile( MSuit suit, int value ) throws
			MTileValueOutOfBoundsException {
		if ( value > 9 || value < 1 ) {
			throw new MTileValueOutOfBoundsException( value );
		}

		this.suit = suit;
		this.value = value;
	}

	public MSuit getSuit() {
		return suit;
	}

	public int getValue() {
		return value;
	}
}
